import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

console.log('3333')

const store = () => new Vuex.Store({

  state: {
    counter: 10
  },

  actions:{
    nuxtServerInit ({ commit }, { req }) {
      this.state.counter++
    }
  }
})

export default store
